package com.example.springboothomework.common;

import com.example.springboothomework.entity.excel.EmployeeExcelImport;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * @author chenjianhao
 * @date 2025/6/10
 *
 * 导入错误信息
 */
@Getter
@Setter
@AllArgsConstructor
public class ImportError {
    /**
     * 行号
     */
    private int rowIndex;

    /**
     * 错误信息
     */
    private String message;

    /**
     * 用户表格的原信息
     */
    private EmployeeExcelImport data;


    public ImportError(int rowIndex, String errorMsg) {
        this.rowIndex = rowIndex;
        this.message = errorMsg;
    }

}